USE [MyCarat]
GO
/****** Object:  StoredProcedure [dbo].[sp_SavePic]    Script Date: 05/30/2012 18:26:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

if exists(select * from sysobjects where id=object_id('sp_SavePic') )
        drop proc sp_SavePic
GO
create proc [dbo].[sp_SavePic]

   @ID varchar(35),
   @imgID varchar(35),
   @imgURL varchar(300)
 
as
begin tran
update pics set
 
   imgID = @imgID,
   imgURL = @imgURL
   
   where ID = @ID
    
    
   commit tran  